define(function(require){
	var $ = require("jquery");
	var justep = require("$UI/system/lib/justep");
	
	var Model = function(){
		this.callParent();
	};
	var CommonUtils = require("$UI/system/components/justep/common/utils");
	
	Model.prototype.modelLoad = function(){
	var a = this.comp('windowReceiver');
		if (justep.Browser.isX5App) {
			CommonUtils.attachDoubleClickExitApp(function(){
				a.windowCancel();
			});
		}
	}

	Model.prototype.backBtnClick = function(event){
		this.comp('windowReceiver').windowCancel();
	};

	return Model;
});